package com.pinkpig.excel.row;


import com.pinkpig.excel.metadata.TableMetaData;
import com.pinkpig.excel.row.model.RowModel;
import com.pinkpig.excel.row.model.TableHeadRowModel;

import java.util.ArrayList;
import java.util.List;

public class TableHeadRowModelBuilder implements RowModelBuilder<TableMetaData> {

    private static List<RowModel> tableHeadRowModels;

    @Override
    public List<RowModel> build(TableMetaData tableMetaData){
        if(null==tableHeadRowModels){
            tableHeadRowModels = new ArrayList<>();
            TableHeadRowModel tableHeadRowModel = new TableHeadRowModel();
            tableHeadRowModels.add(tableHeadRowModel);
        }
        return tableHeadRowModels;
    }

}
